package com.bauer.module.common.error;

/**
 * @Author ：rui.wei
 * @Date ：Created in 17:28 2019/4/10
 * @Description：
 */
public enum ErrorCode {
    SUCCESS("0000", "成功"),
    TOKEN_ERROR("0001", "token异常请重新登录"),
    TOKEN_EXPIRE("0002", "token过期，请刷新token"),
    REQUEST_FREQUENCY("0003", "请求过于频繁请稍后尝试"),
    PARAM_ERROR("1111", "参数有误"),
    SYSTEM_ERROR("9999", "系统异常,请稍后尝试");

    private String code;

    private String message;


    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
